<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>广告链接</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/main.css" />

    <style>
        .back1 {
            width: 8px !important;
            height: 15px !important;
            margin-top: 15px;

        }
        #aui-header{
          padding-bottom: 8px;
          font-size:19px;
          background-color: #fff !important;
        }
    </style>
</head>

<body>
    <header class="aui-bar aui-bar-nav" id="aui-header" >
        <div class="aui-pull-left" onclick="closeWin()">
            <img src="../../image/back.png" class="back1" alt="">
        </div>
        <div class="aui-title"style="color:#000!important;font-size:18px!important;">广告链接</div>
    </header>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/faskclick.js"></script>
<script type="text/javascript">
apiready = function() {
  var header = $api.byId('aui-header');
  $api.fixStatusBar(header);
  var headerPos = $api.offset(header);
  if ('addEventListener' in document) {
      document.addEventListener('DOMContentLoaded', function() {
          FastClick.attach(document.body);
      }, false);
  }
  api.openFrame({
      name: 'videolink_frm',
      url: 'videolink_frm.html',
      bounces: false,
      rect: {
          x: 0,
          y: headerPos.h,
          w: 'auto',
          h: api.winHeight - headerPos.h
      },
      reload:true,
      animation:{
          type:"none",                //动画类型（详见动画类型常量）
          subType:"from_right",       //动画子类型（详见动画子类型常量）
          duration:300                //动画过渡时间，默认300毫秒
      },
      pageParam: {
          videoadurl: api.pageParam.videoadurl
      }
  })

  //监听返回键
  api.addEventListener({
      name: 'keyback'
  }, function(ret, err) {
    api.sendEvent({
        name: 'playvideoad'
    });
    setTimeout(function() {
      api.closeWin();
    }, 1000)
  });
};
function closeWin() {
    api.closeWin();
    api.sendEvent({
        name: 'playvideoad'
    });
}


</script>

</html>
